/* eslint-disable */
import { axios } from "@/utils/request";
const api = {
  getPersonInfoByPersonUnionId:
    "/share-parking/parking/app/getPersonInfoByPersonUnionId", //获取个人资料
  getEncryPath: "/share-parking/parking/screen/getEncryPath", //上传后 获得图片
  getMyInCome: "/share-parking/parking/app/getMyInCome", //我的钱包
  myUnitList: "/share-parking/web/personCenter/myUnitList", //查询我的小区
  updateUser: "/share-parking/parking/auth/updateUser", //修改用户信息

  vueUpload: "/share-parking/parking/screen/file_upload", //上传


  deletePlateNo:  "/share-parking/parking/auth/deletePlateNo",//删除车牌号
  addPlateNo: "/share-parking/parking/auth/addPlateNo",//新增车牌号
  findUserCar: "/share-parking/parking/auth/findUserCar",//查询用户车牌号列表
  setDefaultPlateNo: "/share-parking/parking/auth/setDefaultPlateNo",//设置默认车牌号
};
export default api;
export function setDefaultPlateNo(parameter) {
  return axios({
    url:
      api.setDefaultPlateNo + "?plateNo=" + parameter,
    method: "get"
  });
}
export function deletePlateNo(parameter) {
  return axios({
    url:
      api.deletePlateNo + "?plateNo=" + parameter,
    method: "get"
  });
}
export function addPlateNo(parameter) {
  return axios({
    url:
      api.addPlateNo + "?plateNo=" + parameter.plateNo,
    method: "get"
  });
}
export function findUserCar() {
  return axios({
    url:
      api.findUserCar,
    method: "get"
  });
}
export function getPersonInfoByPersonUnionId(parameter) {
  return axios({
    url:
      api.getPersonInfoByPersonUnionId + "?personUnionId=" + parameter.unionId,
    method: "get"
  });
}

export function getEncryPath(parameter) {
  return axios({
    url: api.getEncryPath + "?path=" + parameter,
    method: "POST"
  });
}

export function getMyInCome(parameter) {
  return axios({
    url: api.getMyInCome + "?unionId=" + parameter.unionId,
    method: "get"
  });
}

export function myUnitList(parameter) {
  return axios({
    url: api.myUnitList + "?unionId=" + parameter.unionId,
    method: "get"
  });
}

export function updateUser(parameter) {
  return axios({
    url: api.updateUser,
    data: parameter,
    method: "POST"
  });
}
export function vueUpload(parameter) {
  return axios({
    url: api.vueUpload,
    data: parameter,
    method: "POST"
  });
}
